<script type="text/plain" id="{$w_data['name']}" name="{$w_data['name']}">{$w_data['value']}</script>
<script type="text/javascript">
<if condition="$w_config['module_name'] = 'Admin'">
serverUrl = "{:U('Admin/File/ueditor')}";
<else/>
serverUrl = "{:U('User/File/ueditor')}";
</if>
<if condition="$w_config['type'] eq 'all'">
var ue = UE.getEditor("{$w_data['name']}",{
	serverUrl         : serverUrl,
	initialFrameWidth : "{$w_config['width']}",
	initialFrameHeight : "{$w_config['height']}"
});
<elseif condition="$w_config['type'] eq 'mini'"/>
var ue = UE.getEditor("{$w_data['name']}",{
	toolbars: [
        ['fullscreen', 'source', 'undo', 'redo', 'bold']
    ],
	initialFrameWidth : "{$w_config['width']}",
	initialFrameHeight : "{$w_config['height']}"
});
</if>
</script>